package cn.sczhyt.modules.szhy.service;

import cn.sczhyt.common.utils.R;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.sczhyt.common.utils.PageUtils;
import cn.sczhyt.modules.szhy.entity.MeetingVoteEntity;
import net.sf.json.JSONObject;

import java.util.List;
import java.util.Map;

/**
 * 表决表
 *
 * @author luoshijie
 * @email 1169414426@qq.com
 * @date 2020-11-25 10:54:22
 */
public interface MeetingVoteService extends IService<MeetingVoteEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 表决保存
     * @param meetingVoteEntity
     * @return
     */
    R saveVote(MeetingVoteEntity meetingVoteEntity);

    JSONObject voteCount(String meetingId, String topicsId);

    List<MeetingVoteEntity> findByTopicsId(String meetingId, String topicsId);
}

